<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - FooTable</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/footable/footable.core.css" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" href="css/page.css"/>
    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/footable/footable.all.min.js"></script>
 	<!-- 分页js -->
    <script type="text/javascript" src="js/jquery.page.js"></script>
    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>
    <script>
        $(document).ready(function() {

            $('.footable').footable();
            $('.footable2').footable();

        });

    </script>
    <script src="js/core.js"></script>
    <script src="js/admin.js"></script>
</head>

<body class="gray-bg">

    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>管理员列表</h5>
                    </div>
                    <div class="ibox-content">

                        <div class="row">
                         <!--   <div class="col-sm-3">
                                <div class="input-group">
                                    <input id="userName" type="text" placeholder="账号" class="input-sm form-control"> <span class="input-group-btn">
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <input id="nick" type="text" placeholder="昵称" class="input-sm form-control"> 
                                </div>
                            </div>-->
                            <span class="input-group-btn">
                               <!-- <button type="button" id="toSearch" class="btn btn-sm btn-primary" onclick="toSearch()"> 搜索</button>-->
                                <button type="button" style="float: right;display: ;" class="btn btn-sm btn-primary"  data-toggle="modal" data-target="#add" onclick="thistitle()" id="addAdmin">添加管理员</button>
                            </span>
                        </div>
                        <table class="table table-stripped toggle-arrow-tiny" data-page-size="8">
                            <thead>
                                <tr>
                                    <th data-toggle="false">账号</th>
                                    <th>角色</th>
                                    <th>状态</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody id="adminlist">
                            </tbody>
                           <tbody>
                                <tr>
                                    <td colspan="8">
                                      <div id="pager"></div>         
                                    </td>
                                </tr>
                            </tbody>
                        </table>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 添加-弹窗 -->
    <div class="modal inmodal" id="add" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content animated bounceInRight">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                        <span class="sr-only">关闭</span>
                    </button>
                    <h4 class="modal-title" id="this_title">添加管理员</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label>账号</label>
                        <input id="login_name" type="text" placeholder="请输入账号" class="form-control">
                        <label >密码</label>
                        <input id="password" type="password" placeholder="请输入密码" class="form-control">
                        <label >确认密码</label>
                        <input id="password2" type="password" placeholder="请再次输入密码" class="form-control">
                        <label>姓名</label>
                        <input id="name" type="text" placeholder="请输入姓名" class="form-control">
                        <label>角色</label>
                        <div id="menu">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="toAdd()">保存</button>
                </div>
            </div>
        </div>
    </div>

</body>
</html>
